package org.huangrui.javaee.controller;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.huangrui.entities.CustomerMixInfo;
import org.huangrui.javaee.service.CustomerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hr
 * @Create 2025-11-03 1:09
 **/
@Slf4j
@RestController
public class T03CustomerController {
    @Resource
    private CustomerService customerSerivce;

    @GetMapping(value = "/customer/findv1")
    public CustomerMixInfo findCustomer()
    {
        return customerSerivce.findCustomer();
    }

    @GetMapping(value = "/customer/findv2")
    public CustomerMixInfo findCustomerByCompletableFuture()
    {
        return customerSerivce.findCustomerByCompletableFuture();
    }
}
